package com.agent.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AsAccountdetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AsAccountdetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andDetailtypeIsNull() {
            addCriterion("detailType is null");
            return (Criteria) this;
        }

        public Criteria andDetailtypeIsNotNull() {
            addCriterion("detailType is not null");
            return (Criteria) this;
        }

        public Criteria andDetailtypeEqualTo(Long value) {
            addCriterion("detailType =", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeNotEqualTo(Long value) {
            addCriterion("detailType <>", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeGreaterThan(Long value) {
            addCriterion("detailType >", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeGreaterThanOrEqualTo(Long value) {
            addCriterion("detailType >=", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeLessThan(Long value) {
            addCriterion("detailType <", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeLessThanOrEqualTo(Long value) {
            addCriterion("detailType <=", value, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeIn(List<Long> values) {
            addCriterion("detailType in", values, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeNotIn(List<Long> values) {
            addCriterion("detailType not in", values, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeBetween(Long value1, Long value2) {
            addCriterion("detailType between", value1, value2, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypeNotBetween(Long value1, Long value2) {
            addCriterion("detailType not between", value1, value2, "detailtype");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameIsNull() {
            addCriterion("detailTypeName is null");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameIsNotNull() {
            addCriterion("detailTypeName is not null");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameEqualTo(String value) {
            addCriterion("detailTypeName =", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameNotEqualTo(String value) {
            addCriterion("detailTypeName <>", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameGreaterThan(String value) {
            addCriterion("detailTypeName >", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameGreaterThanOrEqualTo(String value) {
            addCriterion("detailTypeName >=", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameLessThan(String value) {
            addCriterion("detailTypeName <", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameLessThanOrEqualTo(String value) {
            addCriterion("detailTypeName <=", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameLike(String value) {
            addCriterion("detailTypeName like", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameNotLike(String value) {
            addCriterion("detailTypeName not like", value, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameIn(List<String> values) {
            addCriterion("detailTypeName in", values, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameNotIn(List<String> values) {
            addCriterion("detailTypeName not in", values, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameBetween(String value1, String value2) {
            addCriterion("detailTypeName between", value1, value2, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andDetailtypenameNotBetween(String value1, String value2) {
            addCriterion("detailTypeName not between", value1, value2, "detailtypename");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Double value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Double value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Double value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Double value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Double value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Double> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Double> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Double value1, Double value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Double value1, Double value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyIsNull() {
            addCriterion("accountMoney is null");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyIsNotNull() {
            addCriterion("accountMoney is not null");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyEqualTo(Double value) {
            addCriterion("accountMoney =", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyNotEqualTo(Double value) {
            addCriterion("accountMoney <>", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyGreaterThan(Double value) {
            addCriterion("accountMoney >", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("accountMoney >=", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyLessThan(Double value) {
            addCriterion("accountMoney <", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyLessThanOrEqualTo(Double value) {
            addCriterion("accountMoney <=", value, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyIn(List<Double> values) {
            addCriterion("accountMoney in", values, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyNotIn(List<Double> values) {
            addCriterion("accountMoney not in", values, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyBetween(Double value1, Double value2) {
            addCriterion("accountMoney between", value1, value2, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andAccountmoneyNotBetween(Double value1, Double value2) {
            addCriterion("accountMoney not between", value1, value2, "accountmoney");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("memo not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeIsNull() {
            addCriterion("detailDateTime is null");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeIsNotNull() {
            addCriterion("detailDateTime is not null");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeEqualTo(Date value) {
            addCriterion("detailDateTime =", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeNotEqualTo(Date value) {
            addCriterion("detailDateTime <>", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeGreaterThan(Date value) {
            addCriterion("detailDateTime >", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("detailDateTime >=", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeLessThan(Date value) {
            addCriterion("detailDateTime <", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeLessThanOrEqualTo(Date value) {
            addCriterion("detailDateTime <=", value, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeIn(List<Date> values) {
            addCriterion("detailDateTime in", values, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeNotIn(List<Date> values) {
            addCriterion("detailDateTime not in", values, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeBetween(Date value1, Date value2) {
            addCriterion("detailDateTime between", value1, value2, "detaildatetime");
            return (Criteria) this;
        }

        public Criteria andDetaildatetimeNotBetween(Date value1, Date value2) {
            addCriterion("detailDateTime not between", value1, value2, "detaildatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}